<?php $this->header(); ?>
<div class="wrap">
    <!--默认风格列表-->
    <div class="nav">
        <ul class="cc">
            <li class=" current"><a href="/?g=Admin&m=Theme&a=index">主题列表</a></li>
            <!--            <li ><a href="javascript:;">主题商店</a></li>-->
        </ul>
    </div>

    <div class="h_a">功能说明</div>
    <div class="prompt_text">
        <ul>
            <li>通过此处，可以选择合适的主题</li>
            <li style="list-style: none; font-weight: bold">友情提示：</li>
            <li><font color="red">使用商业主题，请注意主题的版权，未经作者或者PES官网许可，不得散布共享商业主题！<br />若因非法使用商业主题，而引起的版权纠纷，请使用者自行承担责任！</font></li>
        </ul>
    </div>
    <div class="mb10"><a class="btn" href="/?g=Admin&m=Theme&a=install" title="添加节点" role="button"><span class="add"></span>安装主题</a></div>
    <?php if(!empty($lose)): ?>
    <div id="J_style_tip" style="display:block;" class="tips_light">
        主题<span class="red">"<?php echo $lose; ?>"</span>已经丢失！将导致前台无法访问！
    </div>
    <?php endif; ?>
    <div class="mb10 cc">共 <span class="org"><?php echo count($list); ?></span> 套主题</div>

    <div class="design_page">
        <ul class="cc">
            <?php foreach ($list as $key => $value) : ?>
                <li>
                    <div class="img"><img src="<?php echo $value['thumb']; ?>" width="210" height="160" lt="default"></div>
                    <div class="title" title="<?php echo $value['readme']['title']; ?>"><?php echo $value['readme']['title']; ?></div>
                    <div class="descrip" title="迎接2013全新版面"><?php echo $value['readme']['description']; ?></div>
                    <div class="type">
                        <span class="version">版本:<?php echo $value['readme']['version']; ?></span>
                        <span class="author">作者：<?php echo $value['readme']['author']; ?></span>
                    </div>
                    <div class="type">
                        <span class="author">
                            主题地址：<a href="<?php echo $value['readme']['url']; ?>" target="_blank" ><?php echo $value['readme']['url']; ?></a>
                        </span>
                    </div>
                    <div class="type">
                        <span class="author">协议类型：<?php echo empty($value['readme']['license']) ? 'PES' : $value['readme']['license']; ?></span>
                        <span class="author">版权协议：<a href="<?php echo $value['license']; ?>" target="_blank" >阅读</a></span>
                    </div>
                    <div class="ft">
                        <span class="org"><?php echo $value['readme']['title']; ?></span>
                        <span class="org fr mr10">
                            <?php if ($value['status'] == 1): ?>
                                <a class="enable_theme red" data="<?php echo $key; ?>" href="javascript:;">已启用</a>
                            <?php else: ?>
                                <a class="enable_theme" data="<?php echo $key; ?>" href="/?g=Admin&m=Theme&a=enableTheme&theme=<?php echo $key; ?>">启用</a>
                            <?php endif; ?>
                        </span>
                    </div>
                </li>
            <?php endforeach; ?>
        </ul>
    </div>
</div>
<?php $this->footer(); ?>